package com.mervin.patterns.prototype;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-18 00:26
 * @Description: 工作经历
 ***************************************/
public class WorkExperience  implements Cloneable {
    private String workDate;
    private String company;

    public WorkExperience(String workDate, String company) {
        this.workDate = workDate;
        this.company = company;
    }

    public String getWorkDate() {
        return workDate;
    }

    public void setWorkDate(String workDate) {
        this.workDate = workDate;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Override
    public String toString() {
        return "WorkExperience = {" +
                "workDate='" + workDate + '\'' +
                ", company='" + company + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
